package com.pattern.GuavaAPI;

import com.google.common.eventbus.EventBus;

public class text {
    public static void main(String[] args) {
        EventBus eventBus =  new EventBus();

        Teacher teacher=new Teacher("tom");
        eventBus.register(teacher);
        Question question=new Question();
        question.setUserName("小西西");
        question.setContent("西红柿和番茄有什么区别");
        eventBus.post(question);
    }
}
